package com.zhentao.service;

import com.zhentao.model.admin.dto.SysUserDto;
import com.zhentao.model.admin.dto.UserDto;
import com.zhentao.model.admin.rbac.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhentao.model.common.dtos.PermissionResult;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.model.pojo.par.dto.ChargeParOrdersDto;
import com.zhentao.model.pojo.user.ChargeUser;
import com.zhentao.model.pojo.user.gift.ChargeUserGift;
import com.zhentao.model.pojo.user.yichang.ChargeUserExpeciton;
import org.springframework.web.multipart.MultipartFile;

/**
* @author lenovo
* @description 针对表【sys_user(系统用户)】的数据库操作Service
* @createDate 2024-12-26 19:14:23
*/
public interface SysUserService extends IService<SysUser> {

    ResponseResult login(SysUserDto sysUser);

    ResponseResult userInfo();

    ResponseResult logout();


    PermissionResult csRun();

    ResponseResult initUserCount();


    PermissionResult getUserList(ChargeUser chargeUser);

    PermissionResult addBlackList(Integer userId);

    PermissionResult getRoleList();

    PermissionResult updateUser(UserDto dto);

    PermissionResult updateException(ChargeUserExpeciton exception);

    PermissionResult getExceptionList();

    PermissionResult getGifts();

    PermissionResult saveGift(ChargeUserGift gift);

    PermissionResult uploadImg(MultipartFile file);

    PermissionResult updateGift(ChargeUserGift gift);

    PermissionResult deleteGift(Integer id);
}
